Turns the room’s zoomable background to this many degrees: 0 is straight, and bigger numbers turn it counter-clockwise on the screen, the same way every angle in this manual does.
Game Boy: not available
Game Boy Color: not available
Sega Genesis: not available
On other consoles this differs: see Side by side and How the consoles differ.
zoom_background_rotation(degrees)| Name | Type |
|---|---|
degrees | real |
Nothing.
Turns the room's zoomable background to this many degrees. 0 is straight. Bigger numbers turn it counter-clockwise on the screen, the same way every angle in this manual does. It does nothing in a room that has no zoomable background.
Any number works, because angles go round and round: 360 is straight again, and -90 turns it a quarter the other way.
It swings around the focus point, which is the middle of the screen until zoom_background_focus says otherwise.
This call sets the angle. It does not add to it. To keep the picture turning, change the number you pass each frame.
// Step event of the object that runs the map screen. This object keeps the turn in its own angle.
angle += 2;
zoom_background_rotation(angle);The picture turns slowly counter-clockwise, 2 degrees every frame, which is a full turn in three seconds. angle is only used because every object already has one.
A no-op in a room that has no zoomable background. Any number works (it wraps round: 360 is straight again, -90 turns it the other way). It swings about the focus point, the middle of the screen unless zoom_background_focus says otherwise. To keep it turning, set the angle each frame (`spin += 2; zoom_background_rotation(spin);`): the call sets the angle, it does not add to it.